﻿using System.Collections.Generic;
using FileLibrary.Models;

namespace DijkstraLibrary.Models
{
    public class Route
    {
        public int Index { get; set; }
        public string Name { get; set; }
        public Track From { get; set; }
        public Track To { get; set; }
        public List<Track> Paths { get; set; }

        public override string ToString()
        {
            var str = string.Empty;
            Paths.ForEach(x => str += $"{x.Name}-");
            return str;
        }
    }
}